curl -k -o hosts https://raw.githubusercontent.com/racaljk/hosts/master/hosts
move /Y hosts C:\Windows\System32\drivers\etc\hosts
ipconfig /flushdns
使用方法
方法1:保存为.bat文件后执行(需要安装curl,下载链接https://dl.uxnr.de/build/curl/curl_winssl_msys2_mingw32_stc/curl-7.52.1/curl-7.52.1.zip)
方法2:直接访问 https://raw.githubusercontent.com/racaljk/hosts/master/hosts 然后将网页内容拷贝到 C:\Windows\System32\drivers\etc\hosts 文件中即可